package com.naiterui.ehp.bs.im.network.transcode.coders;

import com.alibaba.fastjson.JSON;
import com.naiterui.ehp.bs.im.exception.NaiteruiIMException;
import com.naiterui.ehp.bs.im.network.protocl.ServiceEvaluation;
import org.springframework.stereotype.Service;

/**
 * 服务评价
 *
 * @author yangfuya
 * @version 1.0
 * @date 2021/5/25 18:41
 **/
@Service
public class ServiceEvaluationTransCoder extends AbstractTransCoder<ServiceEvaluation> {

    /**
     * 服务评价解析
     * @param content
     * @return
     * @throws NaiteruiIMException
     */
    @Override
    protected ServiceEvaluation deserializeMessageContent(String content) throws NaiteruiIMException {
        return JSON.parseObject(content, ServiceEvaluation.class);
    }
}
